From 8bd9784acdee6871ad70e86d0d7120299bf76969 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 1 Mar 2022 22:05:08 +0100
Subject: refactor: split posts meta into smaller components

---
 src/pages/article/[slug].tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/pages/article/[slug].tsx')

diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx
index 6d0ad5a..656f7c9 100644
--- a/src/pages/article/[slug].tsx
+++ b/src/pages/article/[slug].tsx
@@ -22,7 +22,7 @@ import { usePrismTheme } from '@utils/providers/prism';
 import { GetStaticPaths, GetStaticProps, GetStaticPropsContext } from 'next';
 import Head from 'next/head';
 import { useRouter } from 'next/router';
-import Prism from 'prismjs';
+import { highlightAll } from 'prismjs';
 import { ParsedUrlQuery } from 'querystring';
 import { useEffect } from 'react';
 import { useIntl } from 'react-intl';
@@ -39,7 +39,7 @@ const SingleArticle: NextPageWithLayout<ArticleProps> = ({
 
   useEffect(() => {
     addPrismClasses();
-    Prism.highlightAll();
+    highlightAll();
   });
 
   const { setCodeBlocks } = usePrismTheme();
-- 
cgit v1.2.3

